package truef.sao.domain;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import edu.zut.cs.software.base.domain.BaseEntity;

@Table(name="T_Orders")
@Entity
public class Order extends BaseEntity {
	/**
	 * 
	 */
	private static final long serialVersionUID = -9010915145350103613L;
	

	@ManyToOne
	@JoinColumn(name = "ShoppingCart_ID")
	ShoppingCart shoppingcart;
	
	String code;
	// 优惠券
	String Coupon;
	
	// 快递公司
	String CourierCompany;

	// 订单状态
	String OrderStatus;

	// 实付金额
	String ActualPaid;

	// 商铺名称
	String ShopName;

	// 创建时间
	String CreationTime;

	// 付款时间
	String PaymentTime;

	// 发货时间
	String DeliveryTime;

	// 成交时间
	String ClosingTime;

	// 订单编号
	String OrderNumber;

	// 支付方式
	String PaymentMethod;

	// 收货地址
	String Address;

	public String getCoupon() {
		return Coupon;
	}

	public void setCoupon(String coupon) {
		Coupon = coupon;
	}

	public String getCourierServicesCompany() {
		return CourierCompany;
	}

	public void setCourierServicesCompany(String courierServicesCompany) {
		CourierCompany = courierServicesCompany;
	}

	public String getOrderStatus() {
		return OrderStatus;
	}

	public void setOrderStatus(String orderStatus) {
		OrderStatus = orderStatus;
	}

	public String getActualPaid() {
		return ActualPaid;
	}

	public void setActualPaid(String actualPaid) {
		ActualPaid = actualPaid;
	}

	public String getShopName() {
		return ShopName;
	}

	public void setShopName(String shopName) {
		ShopName = shopName;
	}

	public String getCreationTime() {
		return CreationTime;
	}

	public void setCreationTime(String creationTime) {
		CreationTime = creationTime;
	}

	public String getPaymentTime() {
		return PaymentTime;
	}

	public void setPaymentTime(String paymentTime) {
		PaymentTime = paymentTime;
	}

	public String getDeliveryTime() {
		return DeliveryTime;
	}

	public void setDeliveryTime(String deliveryTime) {
		DeliveryTime = deliveryTime;
	}

	public String getClosingTime() {
		return ClosingTime;
	}

	public void setClosingTime(String closingTime) {
		ClosingTime = closingTime;
	}

	public String getOrderNumber() {
		return OrderNumber;
	}

	public void setOrderNumber(String orderNumber) {
		OrderNumber = orderNumber;
	}

	public String getPaymentMethod() {
		return PaymentMethod;
	}

	public void setPaymentMethod(String paymentMethod) {
		PaymentMethod = paymentMethod;
	}

	public String getAddress() {
		return Address;
	}

	public void setAddress(String address) {
		Address = address;
	}

	public String getcode() {
		return code;
	}

	public void setcode(String id) {
		code = id;
	}

}
